import request from '@/utils/request'

// 查询配送入库列表
export function listDeliveryEntry(query) {
  return request({
    url: '/storage/warehouseInventory/list',
    method: 'get',
    params: query
  })
}

// 查询配送入库详细
export function getDeliveryEntry(batchId) {
  return request({
    url: '/storage/deliveryEntry/' + batchId,
    method: 'get'
  })
}

// 新增配送入库
export function addDeliveryEntry(data) {
  return request({
    url: '/storage/deliveryEntry',
    method: 'post',
    data: data
  })
}

// 修改配送入库
export function updateDeliveryEntry(data) {
  return request({
    url: '/storage/deliveryEntry',
    method: 'put',
    data: data
  })
}

// 删除配送入库
export function delDeliveryEntry(batchId) {
  return request({
    url: '/storage/deliveryEntry/' + batchId,
    method: 'delete'
  })
}

// 入库新增库存详情
export function addWarehouseInventoryDetail(data) {
  return request({
    url: '/storage/warehouseDetail/addEntryDetail',
    method: 'post',
    data: data
  })
}


